home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cpptutor.arc / FLYAWAY.H < prev    next >
Text File  |  1991-04-28  |  823b  |  29 lines

  1. #ifndef FLYAWAYH   // Only apply these definitions once
  2. #define FLYAWAYH
  3.  
  4. #define FALSE 0
  5. #define TRUE  1
  6.  
  7.  
  8. enum word {north = 1, east, south, west, drop, get,
  9.            look, inventory, read, buy, help, quit,
  10.            keys, candy, ticket, money, monitor, paper};
  11.  
  12.  
  13.           // Prototypes for functions which are not members of
  14.           //  any class.
  15.  
  16. void initialize(void);
  17. void get_command(word &verb, word &noun);
  18. void perform_action(word &verb, word noun);
  19. void read_a_line(word &wd1, word &wd2);
  20. int get_an_ASCII_word(char in_string[]);
  21. int find_in_dictionary(char in_string[]);
  22. int is_a_verb(word input_word);
  23. int is_a_noun(word input_word);
  24. int is_a_direction(word input_word);
  25. int is_an_operation(word input_word);
  26. int is_a_valid_pair(word input_word1, word input_word2);
  27.  
  28. #endif
  29.